﻿using UnityEngine;
using System.Collections;

public class ModeManager : MonoBehaviour {
	public GameObject OKBtn;
	public GameObject BackBtn;
	public UIScrollView scroll1;
	public UIScrollView scroll2;
	public UITweener[] listshowmode;
	public UITweener[] listFX;
	public bool onSelect=false;
	public Mode curMode;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if(onSelect){
			for(int i=0;i<listshowmode.Length;i++){
				listshowmode[i].PlayReverse();
			}
		}
	}
	public void showCom(){
		scroll1.gameObject.SetActive(true);
		if(curMode==Mode.COM_COM)
			scroll2.gameObject.SetActive(true);
		OKBtn.SetActive(true);
		BackBtn.SetActive(true);
	}
}
